﻿
namespace CToolsWin
{
    public static class BaseCommon
    {
        public static void ShowForm(this System.Windows.Forms.Form f, System.Windows.Forms.Form toForm)
        {
            if (f.GetType() != toForm.GetType())
            {
                toForm.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
                toForm.Location = f.Location;
                toForm.Show();
                f.Hide();
            }
        }
    }
}
